import React from 'react';
import { Tooltip } from "antd";
import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default class FieldLock extends React.PureComponent {
  render() {
    const { visible } = this.props;

    if (!visible) return null;

    return (
      <div className="wea-edc-com-lock">
        <Tooltip ecId={`${this && this.props && this.props.ecId || ''}_Tooltip@edv2oe`} placement='bottom' title={getLabel('511773','仅限管理员可见')}>
          <i className="icon-edc-f-lock wea-edc-input-icon"></i>
        </Tooltip>
      </div>
    );
  }
}

FieldLock.defaultProps = {
  visible: false
};